// 获取圈子信息
import {$request} from '../../utils/request'

export const getApplyCircle = ((id) => {
    return new Promise ((resolve, reject) => {
        $request({
            url:'applycirclelist?id='+id,
            method:'GET'
        }).then((res) => {
            console.log("获取圈子申请人员信息成功",res);
            resolve(res)
        }).catch((err) => {
            console.log("获取圈子申请人员信息失败",err);
            reject(err)
        })
    })
})

export const getPassCircle = ((id,userid) => {
    return new Promise ((resolve, reject) => {
        $request({
            url:'passcircle?id='+id+'&userid=' + userid,
            method:'GET'
        }).then((res) => {
            console.log("通过圈子申请成功",res);
            resolve(res)
        }).catch((err) => {
            console.log("通过圈子申请失败",err);
            reject(err)
        })
    })
})